package com.kaver.modular.dc.service.impl;

import com.kaver.modular.system.model.DcConfigVersion;
import com.kaver.modular.system.dao.DcConfigVersionMapper;
import com.kaver.modular.dc.service.IDcConfigVersionService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 配置版本 服务实现类
 * </p>
 *
 * @author Roc
 * @since 2019-01-30
 */
@Service
public class DcConfigVersionServiceImpl extends ServiceImpl<DcConfigVersionMapper, DcConfigVersion> implements IDcConfigVersionService {

	@Override
	public Long maxVersion(Integer appId, Integer envId) {
		return baseMapper.maxVersion(appId, envId);
	}

	@Override
	public Long minVersion(Integer appId, Integer envId, Long version) {
		return baseMapper.minVersion(appId, envId, version);
	}

}
